package com.aspose.cells.a.d;

public abstract class zcu {
   private zcy c = new zcy("/");
   protected zcw a;
   protected com.aspose.cells.a.c.zaa b;
   private static final com.aspose.cells.b.c.a.za d = new com.aspose.cells.b.c.a.za(new String[]{"Relationship", "Id", "Type", "Target", "TargetMode"});

   public zcw b() {
      return this.a;
   }

   public void a(zcw var1) {
      this.a = var1;
   }

   public zcy c() {
      return this.c;
   }

   public static String a(String var0, String var1) {
      if (!var1.startsWith("/")) {
         return var1;
      } else {
         int var2 = 0;
         int var3 = Math.min(var0.length(), var1.length());

         int var4;
         for(var4 = 0; var4 < var3; ++var4) {
            if (var0.charAt(var4) == '/') {
               var2 = var4;
            }

            if (var0.charAt(var4) != var1.charAt(var4)) {
               break;
            }
         }

         var4 = var2 + 1;
         StringBuilder var5 = new StringBuilder();

         for(int var6 = var4; var6 < var0.length(); ++var6) {
            if (var0.charAt(var6) == '/') {
               var5.append("../");
            }
         }

         var5.append(var1, var4, var4 + (var1.length() - var4));
         return com.aspose.cells.b.a.zr.a(var5);
      }
   }
}
